﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MMK.PaketTracker.Server.Definitions;
using MMK.PaketTracker.Server.Database;

namespace MMK.PaketTracker.Server.Application
{
	public static class StationManager
	{
		public static Station LoadStation(Guid stationGuid)
		{
			using (StationSqlDataLayer db = CreateStationSqlDataLayer())
			{
				return db.LoadStation(stationGuid);
			}
		}

		private static StationSqlDataLayer CreateStationSqlDataLayer()
		{
			return new StationSqlDataLayer(Config.DbConnectionString);
		}

	}
}
